package com.auto.survey.activity.adjustment

import android.content.Intent
import android.view.View
import android.widget.TextView
import com.auto.survey.R
import com.auto.survey.activity.adjustment.adjustment_high.HighAdjustMentActivity
import com.auto.survey.base.BaseActivity
import com.auto.survey.widget.CentreToast

/**
 * 平差功能
 * 目前仅有高程网功能， 后续会添加平面网平差功能
 */
class AdjustmentActivity :BaseActivity() {

    override fun initView() {

        mTopBar?.visibility = View.VISIBLE
        mTopBar?.setBackgroundResource(R.color.blue)

        mComment_title?.visibility = View.VISIBLE
        mComment_title?.setBackgroundResource(R.color.blue)
        mComment_title?.setTitle("平差")

        findViewById<TextView>(R.id.tv_high_adjustment).setOnClickListener {
            val intent = Intent()
            intent.setClass(this@AdjustmentActivity, HighAdjustMentActivity::class.java)
            startActivity(intent)
        }

        findViewById<TextView>(R.id.tv_xy_adjustment).setOnClickListener {
            CentreToast.instance.showText("暂未开放")
        }
    }

    override fun getLayoutId(): Int {
        return R.layout.activity_adjustment
    }

}